﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewsReport.Common
{
    public enum ResultStatus
    {
        Error = -1,
        Success = 1
    }
    public class OpearteResult
    {


        public ResultStatus ResultStatus { get; set; }
        public string Msg { get; set; }
        public object Data { get; set; }

        public OpearteResult(ResultStatus status, string msg)
        {
            this.ResultStatus = status;
            this.Msg = msg;
        }

        public OpearteResult(ResultStatus status, string msg, object data)
        {
            this.ResultStatus = status;
            this.Msg = msg;
            this.Data = data;
        }

    }
}
